package com.systemic.service;

import com.systemic.pojo.MindfulnessClass;
import com.systemic.vo.PageVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName: MindfulnessClassService
 * @Description:
 * @Author:
 * @CreateTime: 2024-01-26 10:02
 * @Version:
 **/
public interface MindfulnessClassService {

    /**
     * 新增
     *
     * @param image
     * @param mindfulnessClass
     * @return
     */
    int add(MultipartFile image, MindfulnessClass mindfulnessClass);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int deleteList(Integer[] ids);

    /**
     * 修改
     *
     * @param image
     * @param mindfulnessClass
     * @return
     */
    int update(MultipartFile image, MindfulnessClass mindfulnessClass);

    /**
     * 指定查询
     * @param id
     * @return
     */
    MindfulnessClass selectById(Integer id);

    /**
     * 根据名称模糊查询
     * @param className
     * @return
     */
    List<MindfulnessClass> likeSelect(String className);

    /**
     * 模糊分页查询
     * @param pageVo
     * @return
     */
    List<MindfulnessClass> likeSelectPage(PageVo pageVo);
}
